# coding: utf8
from app import ma


class CourseSchema(ma.ModelSchema):
    class Meta:
        fields = ('id', 'title', 'desc', 'status', 'images')


class CourseImageSchema(ma.ModelSchema):
    class Meta:
        fields = ('id', 'url', 'course_id')
